<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table width="100%">
		<tr>
			<td>bid</td>
			<td>标题</td>
			<td>栏目</td>
			<td>发表时间</td>
			<td>浏览数</td>
			<td>操作</td>
		</tr>
	{hd:section loop=$data name=d}
		<tr>
			<td>{hd:$data[d].bid}</td>
			<td>{hd:$data[d].title}</td>
			<td>{hd:$data[d].catname}</td>
			<td>{hd:$data[d].addtime|date_format:'%Y-%m-%d'}</td>
			<td>{hd:$data[d].click}</td>
			<td class="alist">
				<a href="?m=Admin&c=Blog&a=edit&bid={hd:$data[d].bid}&cid={hd:$data[d].cid}">编辑</a> 
				<a href="?m=Admin&c=Blog&a=delete&bid={hd:$data[d].bid}" onclick="return confirm('删除后不可恢复')">删除</a> 
				<a href="?m=index&c=index&a=blog&bid={hd:$data[d].bid}&cid={hd:$data[d].cid}" target="_blank">访问</a>
			</td>
		</tr>
	{hd:/section}
	</table>
	<div class="page">
	{hd:$page}	
	</div>
	<style>
		.page{
			width: 500px;
			text-align: center;
			margin: 50px auto;
		}
		.page>a{
			padding: 3px 6px;
			margin-right: 6px;
			border: 1px solid #999;
		}
		.page>strong{
			padding: 3px 6px;
			margin-right: 6px;
			background: #394A66;
			border-radius: 1px;
			color: #fff;
		}
		table{
			margin: 0px auto;
			background:url({hd:$smarty.const.__VIEW__}/global/images/default/headerbg.png);
			border-radius: 5px;
			box-shadow: 2px 2px 2px #3D4E67;
			color: #fff;
			text-align: center;
		}
		.alist>a{
			color: #fff;
			text-decoration: none;
		}
		.alist>a:hover{
			text-decoration: underline;
		}
	</style>
</body>
</html>